<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <script>
    console.log('Start');

    const promise = new Promise((resolve) => {
      resolve('Promise resolved');
    });

    promise
      .then(result => {
        new Promise((res) => { res(666) }).then((r) => console.log(r))
        console.log(result); // 输出 'Promise resolved'  
        return 'Next value';
      })
      .then(nextResult => {
        console.log(nextResult); // 输出 'Next value'  
      });

    console.log('End'); 
  </script>
</body>

</html>